<?php
import('ViewModel');
class ActivityViewModel extends ViewModel
{
    protected  $viewFields = array(
        'activity' => array('id', 'title','posttime', 'starttime', 'endtime'),
        'categroy' => array('name' => 'catename', '_on' => 'activity.cateId=categroy.id'),
        'region'=> array('name' => 'regionName', '_on' => 'activity.regionId=region.id')
    );

}
